package org.cfx.auth.service;

import org.cfx.auth.domain.AuthRole;
import org.cfx.auth.domain.dto.RoleDto;
import org.cfx.basic.service.IBaseService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author cfx
 * @since 2023-09-12
 */
public interface IAuthRoleService extends IBaseService<AuthRole> {
    void saveRoleAndPermission(RoleDto roleDto);

    List<Long> loadPermissionByRoleId(Long id);

    void updateRoleAndPermission(RoleDto roleDto);
}
